home *** CD-ROM | disk | FTP | other *** search
/ SuperModels in the Rainforest / SuperModels in the Rainforest.iso / rain.dxr / 00034_MapScoreScript 2.ls < prev    next >
Encoding:
Text File  |  1995-10-13  |  774 b   |  24 lines

  1. on exitFrame
  2.   global giNumMapAreas, giMapRollOverSprite, gbHilightUp
  3.   set rollFalg to 0
  4.   repeat with i = 1 to giNumMapAreas
  5.     if rollOver(i + 10) then
  6.       set iTemp to i + 10
  7.       set sTemp to "MapHilight" & i
  8.       set the castNum of sprite giMapRollOverSprite to the number of cast sTemp
  9.       set the locH of sprite giMapRollOverSprite to the locH of sprite iTemp
  10.       set the locV of sprite giMapRollOverSprite to the locV of sprite iTemp
  11.       updateStage()
  12.       set rollFlag to i
  13.       set gbHilightUp to 1
  14.       updateStage()
  15.     end if
  16.   end repeat
  17.   if not rollFlag and gbHilightUp then
  18.     set the locH of sprite giMapRollOverSprite to -500
  19.     set the locV of sprite giMapRollOverSprite to -500
  20.     set gbHilightUp to 0
  21.   end if
  22.   go(the frame - 2)
  23. end
  24.